package com.gt.wxpay.cashier.domain.model;


public enum PaymentStatusEnum {

    /**
     * -1-已取消
     */
    CANCELLED(6, "已取消"),
    /**
     * 0-未支付
     */
    UNPAY(0, "未支付"),
    /**
     * 1-已支付
     */
    PAYED(1, "已支付"),
    /**
     * 退款中
     */
    REFUNDING(3, "退款中"),
    /**
     * 支付中
     */
    PAYING(5, "支付中"),
    /**
     * 支付中
     */
    CLOSED(-1, "已关闭"),

    /**
     * 支付中
     */
    PAYERROR(7, "支付失败"),
    /**
     * 退款失败
     */
    REFUNDFAIL(4, "退款失败");


    PaymentStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private final Integer code;

    private final String desc;

    public Integer code() {
        return this.code;
    }

    public String desc() {
        return this.desc;
    }

}
